import java.util.Scanner;

public class HihoCoder1082 {

	public static void main(String[] args){
		Scanner in = new Scanner(System.in);
		while(in.hasNextLine()){	
				String value=in.nextLine();
				System.out.println(changeInput(value));
		}
	}

	private static String changeInput(String value) {
		String[] input=value.split(" ");
		StringBuffer sb = new StringBuffer();
		for(String a:input){
			if(a.toLowerCase().contains("marshtomp")){
				String pattern = "(?i)marshtomp";
				a=a.replaceAll(pattern, "fjxmlhx");
				
			}
			sb.append(a+" ");
		}
		return sb.toString();
	}
}
